#include "Move.hh"

using namespace Geom;
using namespace World;

Fleet::Move::Move(Vector<> const& destination):
    Command(),
    destination(destination) {}

bool Fleet::Move::execute(spFleet fleet) {
    fleet->move_towards(destination);
    return (destination - fleet->get_position()).get_length() < 0.05;
}
